package com.justgame.project.service.system;

import com.justgame.project.cloud.common.DataTurbineApplication;
import com.justgame.project.cloud.common.constant.AppConstant;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.session.FlushMode;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * 启动项
 *
 * @author ZhouWeiBo
 * @create 2022/4/11
 */
@EnableAsync
@EnableRedisHttpSession(flushMode = FlushMode.IMMEDIATE)
@SpringCloudApplication
@ServletComponentScan("com.justgame")
@ComponentScan("com.justgame")
@EnableFeignClients({"com.justgame"})
@EnableCaching
@EnableHystrix
public class SystemApplication {
    public static void main(String[] args) {
        DataTurbineApplication.run(AppConstant.SYSTEM, SystemApplication.class, args);
    }
}
